first class citizen in javascript